﻿using ExcelUnity.Exporter.Styles;

namespace ExcelUnity.Exporter.Exporters
{
    /// <summary>
    /// 导出的第一行标题
    /// </summary>
    public class ExportSheetTitle
    {
        public ExportSheetTitle(string title, int rowHeigth = 14, BaseStyle? style = null)
        {
            Title = title;
            RowHeight = rowHeigth > 1 ? rowHeigth : 14;
            Style = style;
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 标题样式
        /// </summary>
        public BaseStyle? Style { get; set; }

        /// <summary>
        /// 行高
        /// </summary>
        public int RowHeight { get; set; }
    }
}